package com.google.wave.bliper.api;

import com.google.wave.api.*;

/**
 * This abstract class of Bliper
 * @author Paulo Romano
 * @version 1.00
 *
 */
public abstract class AbstractBliper {
	protected RobotMessageBundle bundle;
	protected EventHandle eventHandle;
	
	/**
	 * Default constructor
	 * @param bundle Robot Message Bundle
	 */
	 protected AbstractBliper(RobotMessageBundle bundle){
		this.bundle = bundle;
		this.eventHandle = new EventHandle();
	}
	
	 /**
	 * Start the activities
	 */
	protected void init(){
		for (Event e: bundle.getEvents()) {
			eventHandle.processEvent(e);
		}				
	}
}
